#!/bin/bash
#move executefile 2 distination directory

if [ $# -ne 2 ]
then
  echo arguments must be two
  exit
fi 

allfile=`find $1 -type f`
for file in $allfile
do
  if [ -x $file ]
  then
    mv $file $2
  fi
done

